<!DOCTYPE html>
<html>
<head>
    <title></title>
<#include "../../common/common.ftl"/>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row  layui-col-space10">
        <div class="layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <button class="layui-btn layui-btn-bg" id="excelBtn"><i
                            class="layui-icon layui-icon-export"></i>导出Excel
                    </button>
                    <table id="dataTable" class="layui-table table">
                        <tr class="layui-bg-gray">
                            <th style="text-align: center" width="3%">序号</th>
                            <th style="text-align: center">征收项目</th>
                            <th style="text-align: center" width="6%">选房号</th>
                            <th style="text-align: center">被征收人</th>
                            <th style="text-align: center">协议编号</th>
                            <th style="text-align: center">可安置面积</th>
                        </tr>
                    <#list houseList as house>
                        <tr>
                            <td style="text-align: center">${house_index+1}</td>
                            <td style="text-align: center">${house.contract.zsProject.projectName}</td>
                            <td style="text-align: center">${house.contract.chooseHouseNum}</td>
                            <td style="text-align: center">${house.contract.name}</td>
                            <td style="text-align: center">${house.contract.contractCode}</td>
                            <td style="text-align: center">${house.contract.limitHouseAreaTotal}</td>
                        </tr>
                    </#list>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer">
    <button type="button" class="layui-btn layui-btn-green" id="backBtn">返　回</button>
</div>
<script src="/layui/layui.js" charset="utf-8"></script>
<script src="/plugins/jquery/jquery.min.js" charset="utf-8"></script>
<script src="/plugins/tableExcel/jquery.table2excel.js" charset="utf-8"></script>
<script>
    layui.config({
        base: '/modules/' //静态资源所在路径
    }).use(['jquery'], function () {
        var $ = layui.jquery;

        $("#backBtn").click(function () {
            javascript:history.back(-1);
        });
    });
    $("#excelBtn").click(function () {
        $(".table").table2excel({
            exclude: ".noExl",
            name: "${(azProject.projectName)!}选房情况汇总表",
            filename: "${(azProject.projectName)!}选房情况汇总表",
            exclude_img: true,
            exclude_links: true,
            exclude_inputs: true
        });
    });
</script>
</body>
</html>